﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Enterprise.Model.Role;
using Enterprise.Service.Role;
using Enterprise.Infrastructure;
namespace Enterprise.UI.Web.Manage.Role
{
    public partial class Create : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                OnStart();
            }
        }

        private void OnStart()
        {

        }

        protected void Button1_OnClick(object sender, EventArgs e)
        {
            RoleEntity um = new RoleEntity();
            um.RNAME = (string)Utility.sink(rName.UniqueID, Utility.MethodType.Post, 0, 0, Utility.DataType.Str);
            um.RTYPE = "";//(string)Utility.sink(rType.UniqueID, Utility.MethodType.Post, 0, 0, Utility.DataType.Str);
            um.RREMARK = (string)Utility.sink(rRemark.UniqueID, Utility.MethodType.Post, 0, 0, Utility.DataType.Str);
            um.DB_Option_Action = "Insert";
            RoleService service = new RoleService();
            service.RoleExecute(um);
            Response.Redirect("Index.aspx");
            Response.End();
        }

    }
}